const { request } = require("../util/util");

const getIndex = async ({ page = 1 }) => {
	return await request({
		url:"https://lotto.gotogame.net/app/index.php",
		method: "GET",
		param: {
			i: 3,
			t: 0,
			v: "1.1.7",
			from: "wxapp",
			c: "entry",
			a: "wxapp",
			do: "newindex",
			m: "jueqi_imagetext",
			sign: "e8190d46482276904be6fffd9eda14a1",
			page: page,
			category_id: "hot"
		},
		option: { "Content-Type": "application/x-www-form-urlencoded" }
	});
};

module.exports = {
	getIndex
};
